package com.guigu.dh.cmn.feign;

import com.guigu.dh.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn")
public interface DictFeignClient {

    //根据dictCode和value查询
    @GetMapping("/admin/cmn/dict/findDictByValue/{hoscode}/{value}")
    Result findDictByValue (@PathVariable("hoscode") String hoscode,
                            @PathVariable("value") String value);

    // 根据dictCode查询
    @GetMapping("/admin/cmn/dict/findDictByDictCode/{dictCode}")
    Result findDictByDictCode(@PathVariable String dictCode);
}
